#ifndef CPROXYCONNECT_H
#define CPROXYCONNECT_H

#include <QThread>
#include "../public/CSocket.h"
#include "../public/CopyData.h"

class CProxyConnect : public QThread
{
Q_OBJECT
public:
    static CProxyConnect& Instance();
    bool ProxyStarted();
    bool CreatePadConnect();
    void Reset();

protected:
    CSocket usbConnect;
    int     proxying;

    CProxyConnect();
    int ReadCommand();
    int ServerDoCommand(int cmdLen);
    void run();
};

#endif // CPROXYCONNECT_H
